package grisar.gris.helpers;

import android.graphics.Point;

public class Geometrics {

	public static float distance(Point a, Point b){
		return (float) Math.sqrt((b.x-a.x)*(b.x-a.x) + (b.y-a.y)*(b.y-a.y));
	}
	
	public static double angleBetweenPoints( Point a, Point b ) {
		
		return Math.atan2( a.x - b.x, a.y - b.y ) * (180 / Math.PI);
	}
}
